package com.hongyun.tms.common.dto.dislog;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hongyun.tms.common.annotation.excel.ExcelInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Size;
import java.time.LocalDate;

/**
 * 调度日志导出模板 响应
 *
 * @author liPeng
 * @date 2024-05-31
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ExcelInfo(fileName = "调度日志模板")
public class DisLogTemplateDto {

    @ApiModelProperty(value = "交接班日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ExcelProperty(value = "交接班日期(格式:年-月-日，例：2022-09-12)", index = 0)
    private LocalDate shiftDate;

    @ApiModelProperty(value = "班次,01白班02夜班")
    @ExcelProperty(value = "班次(白班/夜班 选其一)", index = 1)
    private String classCode;

    @ApiModelProperty(value = "交接班内容")
    @Size(max = 200, message = "交接班内容不能超过200给字符")
    @ExcelProperty(value = "交接班内容", index = 2)
    private String remark;

}

